package com.applcn.shop.constant;

import com.baomidou.mybatisplus.core.enums.IEnum;

/**
 * com.applcn.shop.constant
 * Description:
 *
 * @author: 大妖怪
 * @date: 2020-01-19 22:13
 */
public enum ShopBannerEnum implements IEnum<Integer> {

    /**
     * 仅展示图片，别的什么也不做
     */
    ONLY_DISPLAY(0, "仅展示图片"),

    /**
     * 商品详情
     */
    GOODS(1, "跳转到商品详情");

    private int code;
    private String desc;

    ShopBannerEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    @Override
    public Integer getValue() {
        return this.code;
    }
}
